package com.cby.android.base.contentprovider

import android.net.Uri

/**
 * @description: Constant
 *
 * @author ChenBaoyang
 * @date 2021/10/13 17:23
 */
object Constant {

    const val DATABASE_NAME = "test.db"

    const val TABLE_NAME = "user"

    const val COLUMN_ID = "id"
    const val COLUMN_NAME = "name"
    const val COLUMN_AGE = "age"

    const val AUTHORITY = "com.cby.android.base.MyContentProvider"
    const val ITEM = 1
    const val ITEM_ID = 2

    const val CONTENT_TYPE = "vnd.android.cursor.dir/user"
    const val CONTENT_ITEM_TYPE = "vnd.android.cursor.item/user"

    val CONTENT_URI: Uri = Uri.parse("content://$AUTHORITY/user")
}